package com.irain.pp.tool.mybatis.mapper;


import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import java.util.Map;

/**
 * @author iRain
 * @date 2017/12/18 20:05
 */
public interface SelectForNativeSqlByExampleMapper<T> {

    /**
     * 动态Sql,根据example获取统计信息
     * @param nativeSelect
     * @param example
     * @return
     */
    @SelectProvider(type = SelectForNativeSqlProvider.class, method = "dynamicSQL")
    Map<String,Object> selectForNativeSqlByExample(@Param("nativeSelect") NativeSelect nativeSelect,@Param("example") Object example);

}
